package 练习;

import java.util.Arrays;

public class 数组判断是否相同 {
    public static void main(String[] args) {
        int[] array = {5,1,3,2,4};
        int[] array1 ={1,2,3,4,5};
        Arrays.sort(array);
        boolean flg = Arrays.equals(array1,array);
        System.out.println(flg);
    }
}
